package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author panbo
 * @since 2024/11/7
 */
@Getter
@AllArgsConstructor
@Dict("订单状态")
public enum OrderStatusEnum implements DictEnum<String> {
    PENDING("PENDING", "待支付", "warning"),
    PAYING("PAYING", "支付中", "processing"),
    PAID("PAID", "已支付", "green"),
    CANCELED("CANCELED", "已取消", "default"),
    ;

    @JsonValue
    @EnumValue
    private final String value;
    private final String label;
    private final String color;
}

